package com.bumptech.glide.signature;

import com.bumptech.glide.load.Key;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;

public class StringSignature
  implements Key
{
  private final String signature;

  public StringSignature(String paramString)
  {
    if (paramString == null)
      throw new NullPointerException("Signature cannot be null!");
    this.signature = paramString;
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject)
      return true;
    if ((paramObject == null) || (getClass() != paramObject.getClass()))
      return false;
    StringSignature localStringSignature = (StringSignature)paramObject;
    return this.signature.equals(localStringSignature.signature);
  }

  public int hashCode()
  {
    return this.signature.hashCode();
  }

  public String toString()
  {
    return "StringSignature{signature='" + this.signature + '\'' + '}';
  }

  public void updateDiskCacheKey(MessageDigest paramMessageDigest)
    throws UnsupportedEncodingException
  {
    paramMessageDigest.update(this.signature.getBytes("UTF-8"));
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.bumptech.glide.signature.StringSignature
 * JD-Core Version:    0.6.2
 */